import json

# 定义读取json文件的函数
def read_json_data(path_filename):
    # with open("../data/ihrm_login.json","r",encoding="utf-8") as f:
    # with open("../data/add_emp.json", "r", encoding="utf-8") as f:
    with open(path_filename, "r", encoding="utf-8") as f:
        json_data=json.load(f)
        list_data=[]
        for item in json_data:
            # 将每一行数据转为元组
            tmp=tuple(item.values())
            # 存进列表中
            list_data.append(tmp)

        return list_data

if __name__ == '__main__':
    ret=read_json_data()
    print(ret)
